package cn.wuyi.common.exception;


/**
 * Service层公用的Exception.
 */
public class BaseException extends RuntimeException {

	private static final long serialVersionUID = 3583566093089790852L;
	
	//业务异常code
	private String code;

	public BaseException() {
		super();
	}

	public BaseException(String message) {
		super(message);
	}
	
	public BaseException(String code, String message) {
		super(message);
		this.code = code;
	}

	public BaseException(Throwable cause) {
		super(cause);
	}

	public BaseException(String message, Throwable cause) {
		super(message, cause);
	}
	
	public String getCode() {
		return this.code;
	}
}
